package routes_api

import (
	"github.com/kataras/iris/v12"
)

// 前台api: http://{host}/api
func Route(r iris.Party) {
	r.AllowMethods(iris.MethodOptions)
	r.Use(
		mwCors,
		mwBefore,
	)
	//[通用]
	r.Get("/", RouteA{}.Index)
}
